<?php
function smarty_modifier_email($string, $email)
{
	if(trim($email) == "") {
		return $string;
	} 
	
	return sprintf('<a href="mailto:%s">%s</a>', $email, $string);
}

?>
